package matlap.shared;

import java.io.Serializable;

public class Task implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4539608181273849740L;
	private String username;
	private String firstname;
	private String lastname;
	private int volume;
	private String task_text;
	private String deadline;
	private String received;
	private int type;
	private int corrected;
	private boolean inserted;
	private String name;

	public Task() {

	}

	public Task(String un, String fn, String ln, int v, String tx, String dl,
			String r, int c) {
		this.username = un;
		this.username = fn;
		this.username = ln;
		this.volume = v;
		this.task_text = tx;
		this.deadline = dl;
		this.received = r;
		this.corrected = c;
	}

	// -----------------------------------------
	public String getFirstName() {
		return firstname;
	}

	public void setFirstName(String fn) {
		firstname = fn;
	}


	// -----------------------------------------
	public String getLastName() {
		return lastname;
	}

	public void setLastName(String fn) {
		username = fn;
	}

	// -----------------------------------------
	public String getUserName() {
		return username;
	}

	public void setUserName(String un) {
		username = un;
	}

	// -----------------------------------------
	public int getVolume() {
		return volume;
	}

	public void setVolume(int arti) {
		volume = arti;
	}

	// -----------------------------------------
	public String getDeadline() {
		return deadline;
	}

	public void setDeadline(String ad) {
		deadline = ad;
	}

	// -----------------------------------------
	public String getReceived() {
		return received;
	}

	public void setReceived(String r) {
		received = r;
	}

	// -----------------------------------------
	public int getCorrected() {
		return corrected;
	}

	public void setCorrected(int c) {
		corrected = c;
	}

	// -----------------------------------------
	public String getTaskText() {
		return task_text;
	}

	public void setTaskText(String at) {
		task_text = at;
	}

	// -----------------------------------------
	public boolean isInserted() {
		return inserted;
	}

	public void setInserted(boolean inserted) {
		this.inserted = inserted;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public void setType(int type) {
		this.type = type;
	}

	public int getType() {
		return type;
	}

}
